<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
		.colse{
			color: red;
		}
	</style>
	<script type="text/javascript">
		
		window.onload= function () {
			son  = document.getElementById('son');

			son.onclick=function () {
				son.previousSibling.previousSibling.style.background="red";
			}
		}
	</script>
</head>
<body>
	<table border="1">
		<tr>
			<td>姓名</td>
			<td>姓名</td>
			<td>姓名</td>
			<td>表头</td>
		</tr>
		<tr>
			<td>姓名</td>
			<td>姓名</td>
			<td>姓名</td>
			<td id="son" class="colse">删除</td>
		</tr>
		<tr>
			<td>姓名</td>
			<td>姓名</td>
			<td>姓名</td>
			<td class="colse">删除</td>
		</tr>
		<tr>
			<td>姓名</td>
			<td>姓名</td>
			<td>姓名</td>
			<td class="colse">删除</td>
		</tr>
		<tr>
			<td>姓名</td>
			<td>姓名</td>
			<td>姓名</td>
			<td class="colse">删除</td>
		</tr>
	</table>
</body>
</html>